package cn.ava.ymcc.dto;

import cn.ava.ymcc.domain.Course;
import cn.ava.ymcc.domain.CourseDetail;
import cn.ava.ymcc.domain.CourseMarket;
import cn.ava.ymcc.domain.CourseResource;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Title:
 * @Description: 课程添加临时数据
 * @Author: Avavaava
 * @Version: 23.53
 * @Date: 2022/8/11 17:44
 * @param:
 * @return:
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class CourseSaveDto {

    @Valid
    private Course course;
    @Valid
    private CourseDetail courseDetail;
    @Valid
    private CourseMarket courseMarket;
    @Valid
    private CourseResource courseResource;
    @NotNull(message = "参数异常!")
    private List<Long> teacharIds;

}
